On Thu, 14 Nov 2019 00:30:33 -0500, nospam wrote:
> snipping to alter context yet again. tsk, tsk.
I quote that which I respond to.
<
http://www.rvelthuis.de/articles/articles-quoting.html>
"Do not overquote. "
<
http://www.river.com/users/share/etiquette/#quotes>
"quote only those portions of the original message that are
relevant to the topic we're addressing."
"There is almost never any need to quote someone else's post in full.
As a matter of fact, full-quoting is usually considered quite rude."
> and you definitely *don't* do it all the time, because if you did, you
> wouldn't have needed to ask how to do it in another thread.
Hehheh ... nospam, your memory is rather short, is it not?
o You forget I have been shrinking PDFs for free for many years.
John McWilliams is too stupid to realize there's plenty of Mac freeware.
o brew install --HEAD pts/utils/pdfsizeopt
Where he proved it when he said he'll follow Savageduck's idiotic suggestion.
Usually when Adobe Acrobat fails to get a good size, ImageMagick wins:
o convert -density 200x200 -quality 60 -compress jpeg big.pdf small.pdf
o convert -density 200x200 -quality 60 -compress jpeg -resize 50% big.pdf small.pdf
o convert -compress Zip -density 150x150 big.pdf small.pdf
o <
http://www.imagemagick.org/script/command-line-options.php#compress>
If not, GhostScript works reasonably well on a lot of the PDFs.
o gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=small.pdf big.pdf
o gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dBATCH -dQUIET -sOutputFile=small.pdf big.pdf
o gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=small.pdf big.pdf
o gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=small.pdf big.pdf
o gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dDownsampleColorImages=true -dColorImageResolution=150 -dNOPAUSE -dBATCH -sOutputFile=small.pdf big.pdf
#!/bin/sh
gs -q -dNOPAUSE -dBATCH -dSAFER \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=1.3 \
-dPDFSETTINGS=/screen \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dColorImageDownsampleType=/Bicubic \
-dColorImageResolution=72 \
-dGrayImageDownsampleType=/Bicubic \
-dGrayImageResolution=72 \
-dMonoImageDownsampleType=/Bicubic \
-dMonoImageResolution=72 \
-sOutputFile=out.pdf \
$1
But each PDF is different.
There are LOTs of solutions in my logs that I've done over the years.
o <
https://github.com/pts/pdfsizeopt>
o pdfsizeopt big.pdf small.pdf
o pdftk big.pdf output small.pdf compress
o <
https://mupdf.com/docs/manual-mutool-convert.html>
o <
https://mupdf.com/docs/manual-mutool-create.html>
o <
http://qpdf.sourceforge.net/>
o qpdf --linearize big.pdf small.pdf
o pdf2ps big.pdf
huge.ps && ps2pdf
huge.ps small.pdf
o ps2pdf -dPDFSETTINGS=/ebook big.pdf small.pdf
o ps2pdf -dPDFSETTINGS=/printer big.pdf small.pdf
o pdf2ps big.pdf
huge.ps && ps2pdf -dPDFSETTINGS=/screen -dDownsampleColorImages=true -dColorImageResolution=200 -dColorImageDownsampleType=/Bicubic
huge.ps small.pdf
o ps2pdf -dDownsampleColorImages=true -dDownsampleMonoImages=true -dDownsampleGrayImages=true -dColorImageResolution=300 -dGrayImageResolution=600 -dMonoImageResolution=1200
o <
https://www.windows10download.com/4dots-free-pdf-compress/> <- stinks
o <
https://github.com/gugli28/PdfCompressor>
o <
http://www.nicepdf.com/products.html> shareware
o <
https://www.timedicer.co.uk/programs/help/pdf-compress.sh.php>
o Open big.pdf in Libre Office; export as pdf; set "jpeg compression quality" & "image resolution"
o etc.
In short, ImageMagick works when Adobe Acrobat fails.
But there are a score of solutions that work to varying degrees.
All this is too complex for John McWilliams
o Who already said he'd use Savageduck's idiotic suggestion.